def readline(filename,findname):
    whit open(filename,encoding=utf-8) as f:
        if i in f:
            if findname in i:
                yield i

g =readline('fuckcisco.log','cpu')
for i in g:
    print(i.strip())